package cc.aiee.wxpay.model.score.complete;

import java.util.List;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import com.alibaba.fastjson.annotation.JSONField;

import cc.aiee.core.interfaces.PayJsonBeanInterface;
import cc.aiee.core.kit.KitJson;
import cc.aiee.wxpay.model.score.create.WxPayLocation;
import cc.aiee.wxpay.model.score.create.WxPayTimeRange;
import lombok.Data;

@Data
public class WxPayCompleteOrderModel implements PayJsonBeanInterface {
	
	@NotBlank
	@JSONField(serialize = false)
	private String out_order_no;
	
	private String appid;
	
	private String service_id;
	
	private List<WxPayPostPayment> post_payments;
	
	private WxPayTimeRange time_range;
	
	private WxPayLocation location;
	
	@NotNull
	private Integer total_amount;
	
	@Override
	public String toJson() {
		return KitJson.toJSONString(this);
	}

	@Override
	public String toJson(boolean prettyFormat, boolean ignoreNull) {
		return KitJson.toJSONString(this, prettyFormat, ignoreNull);
	}

}
